<?php
function testStatic() {
    static $val = 1;
    static $val = 66;
    echo $val;
    $val++;
    
}
function testStatic2() {
    static $val = 90;
    $val++;
    echo $val;
}
testStatic();   //output 1
testStatic();   //output 2
// testStatic();   //output 3
?>